package org.elsfs.cloud.module.ai.api.entity;

import cn.idev.excel.annotation.write.style.ColumnWidth;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.elsfs.cloud.common.core.entity.BaseSpellEntity;


/**
 * ai知识库文档
 *
 * @author zeng
 * @version V1.0.0-M2
 * @since 2025-06-20
 */
@EqualsAndHashCode(callSuper = true)
@Schema(description = "ai知识库文档")
@Data
@ColumnWidth(20)
@TableName("ai_knowledge_doc")
public class AiKnowledgeDoc extends BaseSpellEntity {

    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description = "主键")
    private String KnowledgeDocId;

    /**
     * 知识库id
     */
    @Schema(description = "知识库id")
    private String knowledgeId;

    /**
     * 标题
     */
    @Schema(description = "标题")
    private String title;

    /**
     * 知识库文档类型 文本 文件 网页
     */
    @Schema(description = "类型")
    private String knowDocType;

    /**
     * 内容
     */
    @Schema(description = "内容")
    private String content;

    /**
     * 元数据,存储上传文件的存储目录以及网站站点 <br/>
     * eg. {"filePath":"https://xxxxxx","website":"https://hellp.elsfs.com"}
     */
    @Schema(description = "元数据")
    private String metadata;

    /**
     * 状态
     */
    @Schema(description = "状态")
    private String status;
}
